﻿#region Copyright RenGuiYou. All rights reserved.

//=====================================================
// PandoraFrameWork
// Author:      RenGuiyou
// Feedback: 	mailto:750539605@qq.com
//=====================================================

#endregion

using UnityEditor;
using UnityEngine;

namespace PandoraEditor.Window
{
    public class LocalServerCategory : ConfigCategory
    {
        public override void OnInit()
        {
            name = "打包服务";
        }

        public override void OnDrawAction()
        {
            var setting = BuildSetting.LocalServerSetting;
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("内网配置", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.path_asset = EditorGUILayout.TextField("资源地址", setting.path_asset);
                setting.path_asset_url = EditorGUILayout.TextField("资源网络地址", setting.path_asset_url);
                setting.path_package_svn = EditorGUILayout.TextField("SVN安装包地址", setting.path_package_svn);
                setting.path_package_server = EditorGUILayout.TextField("内网安装包地址", setting.path_package_server);
            }
            GUILayout.EndVertical();
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("mac内网配置", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.path_mac_asset = EditorGUILayout.TextField("资源地址", setting.path_mac_asset);
                setting.path_mac_package_server = EditorGUILayout.TextField("内网安装包地址", setting.path_mac_package_server);
                setting.mac_adhoc_identity = EditorGUILayout.TextField("adhoc描述组织信息", setting.mac_adhoc_identity);
                setting.mac_adhoc_uuid = EditorGUILayout.TextField("adhoc描述文件uuid", setting.mac_adhoc_uuid);
            }
            GUILayout.EndVertical();
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("Gradle配置", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.path_gradle = EditorGUILayout.TextField("Gradle路径", setting.path_gradle);
            }
            GUILayout.EndVertical();
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("mac的Python配置", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.path_mac_python = EditorGUILayout.TextField("Python路径", setting.path_mac_python);
            }
            GUILayout.EndVertical();
            EditorGUILayout.LabelField("通知服务", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.url_dingding = EditorGUILayout.TextField("钉钉url", setting.url_dingding);
            }
            GUILayout.EndVertical();
        }
    }
}